package org.grow.infru.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Embeddable;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.io.Serializable;

/**
 * @Author: xwg
 * @CreateDate: 2022/2/18
 */

@Embeddable
@Data
public class HolyDetailId implements Serializable {

    /**
     *  注意此处类型要匹配 主键顺序会影响默认的排序
     * */
    @JsonIgnore
    private String hbCodeFk;
    //    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer detailCode ;

}
